package cx.zan.domain;

//@Data
public class CartItem {
    //关联的商品
    private Product product;
    //关联的数量
    private int count;
    //小计
    private double subtotal;



    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getSubtotal() {
        return product.getShop_price()*count;
    }
}
